<div class="form" style="margin-left: 40px;">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'expedientes-form',
	'enableAjaxValidation'=>false,
)); ?>



	<?php echo $form->errorSummary($model); 
        
        if ($_GET['part']!=" ") {

         
        $part=0;
        $part=$_GET['part'];
      
        }
        ?>
       
        <div style="    float: left;     width: 45%;    height: 90px;    margin: 5px;">
		<?php echo $form->labelEx($model,'EXP_N'); ?>
		<?php echo $form->textField($model,'EXP_N'); ?>
		<?php echo $form->error($model,'EXP_N'); ?>
	</div>
       
   <div style="    float: left;     width: 45%;    height: 90px;    margin: 5px;">
		<?php echo $form->labelEx($model,'EXP_A'); ?>
		<?php echo $form->textField($model,'EXP_A'); ?>
		<?php echo $form->error($model,'EXP_A'); ?>
	 </div>
            
 
  
             <div style="    float: left;     width: 10%;    height: 90px;    margin: 5px;;">
                <?php echo $form->labelEx($model,'DPTO'); ?>
		<?php
                if ($part!=""){
                    //CHtml::textField("reparacion_id",$_GET['reparacion_id'],array())
                    echo CHtml::textField("DPTO",substr($part, 0, 2),array('readonly'=>true, 'size'=>20,'maxlength'=>2,'style'=>'width:60px;')); 
                }else{
                    echo $form->textField($model,'DPTO',array('size'=>20,'maxlength'=>2,'style'=>'width:60px;')); 
                }?>
		<?php echo $form->error($model,'DPTO'); ?>
	</div> 
                <div style="    float: left;     width: 10%;    height: 90px;    margin: 5px;">	        
		<?php echo $form->labelEx($model,'CIRCUN'); ?>
		<?php 
                      if ($part!=""){
                    //CHtml::textField("reparacion_id",$_GET['reparacion_id'],array())
                    echo CHtml::textField("CIRCUN",substr($part, 2, 3),array('readonly'=>true, 'size'=>20,'maxlength'=>2,'style'=>'width:60px;')); 
                }else{
                     echo $form->textField($model,'CIRCUN',array('size'=>20,'maxlength'=>50,'style'=>'width:60px;'));
                }?>
                <?php echo $form->error($model,'CIRCUN'); ?>
	</div>
           
        <div style="    float: left;     width: 10%;    height: 90px;    margin: 5px;">       
		<?php echo $form->labelEx($model,'SECCION'); ?>
		<?php 
                  if ($part!=""){
                    //CHtml::textField("reparacion_id",$_GET['reparacion_id'],array())
                    echo CHtml::textField("SECCION",substr($part, 5, 2),array('readonly'=>true, 'size'=>20,'maxlength'=>2,'style'=>'width:60px;')); 
                }else{
                echo $form->textField($model,'SECCION',array('size'=>20,'maxlength'=>2,'style'=>'width:60px;'));} ?>
		<?php echo $form->error($model,'SECCION'); ?>
	</div> 
                
        <div style="    float: left;     width: 10%;    height: 90px;    margin: 5px;">        
		<?php echo $form->labelEx($model,'CHACRA'); ?>
		<?php
                  if ($part!=""){
                    //CHtml::textField("reparacion_id",$_GET['reparacion_id'],array())
                    echo CHtml::textField("CHACRA",substr($part, 7, 4),array('readonly'=>true, 'size'=>20,'maxlength'=>2,'style'=>'width:60px;')); 
                }else{
                    echo $form->textField($model,'CHACRA',array('style'=>'width:60px;'));
                    
                } ?>
		<?php echo $form->error($model,'CHACRA'); ?>
	</div>
                
         <div style="    float: left;     width: 10%;    height: 90px;    margin: 5px;">
		<?php echo $form->labelEx($model,'QUINTA'); ?>
		<?php 
                  if ($part!=""){
                    //CHtml::textField("reparacion_id",$_GET['reparacion_id'],array())
                    echo CHtml::textField("QUINTA",substr($part, 11, 4),array('readonly'=>true, 'size'=>20,'maxlength'=>2,'style'=>'width:60px;')); 
                }else{
                echo $form->textField($model,'QUINTA',array('style'=>'width:60px;'));} ?>
		<?php echo $form->error($model,'QUINTA'); ?>
	</div>
                
        <div style="    float: left;     width: 10%;    height: 90px;    margin: 5px;">
		<?php echo $form->labelEx($model,'FRACCION'); ?>
		<?php
                if ($part!=""){
                    //CHtml::textField("reparacion_id",$_GET['reparacion_id'],array())
                    echo CHtml::textField("FRACCION",substr($part, 15, 4),array('readonly'=>true, 'size'=>20,'maxlength'=>2,'style'=>'width:60px;')); 
                }else{ 
                echo $form->textField($model,'FRACCION',array('size'=>6,'maxlength'=>6,'style'=>'width:60px;'));
                
                } ?>
		<?php echo $form->error($model,'FRACCION'); ?>
	</div>
                
        <div style="    float: left;     width: 10%;    height: 90px;    margin: 5px;">
		<?php echo $form->labelEx($model,'MANZ'); ?>
		<?php 
                 if ($part!=""){
                    //CHtml::textField("reparacion_id",$_GET['reparacion_id'],array())
                    echo CHtml::textField("MANZ",substr($part, 19, 4),array('readonly'=>true, 'size'=>20,'maxlength'=>2,'style'=>'width:60px;')); 
                }else{ echo $form->textField($model,'MANZ',array('style'=>'width:60px;'));
                
                } ?>
		<?php echo $form->error($model,'MANZ'); ?>
	</div>

                <div style="    float: left;     width: 10%;    height: 90px;    margin: 5px;">
		<?php echo $form->labelEx($model,'PARCELA'); ?>
		<?php if ($part!=""){
                    //CHtml::textField("reparacion_id",$_GET['reparacion_id'],array())
                    echo CHtml::textField("PARCELA",substr($part, 23, 5),array('readonly'=>true, 'size'=>20,'maxlength'=>2,'style'=>'width:60px;')); 
                }else{ echo $form->textField($model,'PARCELA',array('style'=>'width:60px;')); }?>
		<?php echo $form->error($model,'PARCELA'); ?>
                </div>
        
            <div style="    float: left;     width: 90%;    height: 90px;    margin: 5px;">
		<?php echo $form->labelEx($model,'caratula'); ?>
		<?php echo $form->textArea($model,'caratula',array('rows'=>2, 'cols'=>300,'size'=>300, 'style' => ' display:inline;width:642px; ')); ?>
                <?php echo $form->error($model,'caratula'); ?>
            </div>
            
            <div style="    float: left;     width: 30%;    height: 90px;    margin: 5px;">
                <?php echo $form->labelEx($model,'fojas'); ?>
		<?php echo $form->textField($model,'fojas'); ?>
		<?php echo $form->error($model,'fojas'); ?>
            </div>        
       
	
        <div style="    float: left;     width: 30%;    height: 90px;    margin: 5px;">
		<?php echo $form->labelEx($model,'ocupanteDoc'); ?>
		<?php echo $form->textField($model,'ocupanteDoc'); ?>
		<?php echo $form->error($model,'ocupanteDoc'); ?>
	</div>
    
        <div style="    float: left;     width: 30%;   height: 90px;    margin: 5px;">
		<?php echo $form->labelEx($model,'barrFis'); ?>
		<?php echo $form->textField($model,'barrFis'); ?>
		<?php echo $form->error($model,'barrFis'); ?>
        </div> 
        
        <div style="    float: left;     width: 30%;    height: 90px;    margin: 5px;">
                <?php echo $form->labelEx($model,'barrPos'); ?>
		<?php echo $form->textField($model,'barrPos'); ?>
		<?php echo $form->error($model,'barrPos'); ?>
        </div>
        
        <div style="    float: left;     width: 30%;    height: 90px;    margin: 5px;">
		<?php echo $form->labelEx($model,'codPos'); ?>
		<?php echo $form->textField($model,'codPos'); ?>
		<?php echo $form->error($model,'codPos'); ?>
	</div>
        
        <div style="    float: left;     width: 30%;    height: 90px;    margin: 5px;">
		<?php echo $form->labelEx($model,'FechaInicio'); ?>
		<?php echo $form->textField($model,'FechaInicio'); ?>
		<?php echo $form->error($model,'FechaInicio'); ?>
	</div>
    
    	<div style="    float: left;     width: 30%;    height: 90px;    margin: 5px;">
		<?php echo $form->labelEx($model,'nota_id'); ?>
		<?php echo $form->textField($model,'nota_id'); ?>
		<?php echo $form->error($model,'nota_id'); ?>
	</div>

       
    
    
    
        <div style="    float: left;     width: 30%;    height: 90px;    margin: 5px;">        
		<?php echo $form->labelEx($model,'SUPTER'); ?>
		<?php echo $form->textField($model,'SUPTER'); ?>
		<?php echo $form->error($model,'SUPTER'); ?>
	</div>	

                
	 <div style="    float: left;     width: 30%;    height: 90px;    margin: 5px;">
		<?php echo $form->labelEx($model,'CALLE1'); ?>
		<?php echo $form->textField($model,'CALLE1'); ?>
		<?php echo $form->error($model,'CALLE1'); ?>
            </div>
                
                 <div style="    float: left;     width: 30%;    height: 90px;    margin: 5px;">
		<?php echo $form->labelEx($model,'CALLE2'); ?>
		<?php echo $form->textField($model,'CALLE2'); ?>
		<?php echo $form->error($model,'CALLE2'); ?>
            </div>
                
         <div style="    float: left;     width: 30%;    height: 90px;    margin: 5px;">       
		<?php echo $form->labelEx($model,'ALTCF1'); ?>
		<?php echo $form->textField($model,'ALTCF1'); ?>
		<?php echo $form->error($model,'ALTCF1'); ?>
	</div> 
                
         <div style="    float: left;     width: 30%;    height: 90px;    margin: 5px;">     
		<?php echo $form->labelEx($model,'ALTCF2'); ?>
		<?php echo $form->textField($model,'ALTCF2'); ?>
		<?php echo $form->error($model,'ALTCF2'); ?>
        </div>  
         
         <div style="    float: left;     width: 30%;    height: 90px;    margin: 5px;">     
		<?php echo $form->labelEx($model,'FECHAREAL'); ?>
		<?php echo $form->textField($model,'FECHAREAL'); ?>
		<?php echo $form->error($model,'FECHAREAL'); ?>
         </div>   
    
<div style="    float: left;     width: 30%;    height: 90px;    margin: 5px;">
		<?php echo $form->labelEx($model,'ESTADO_ID'); ?>
		<?php echo $form->textField($model,'ESTADO_ID'); ?>
		<?php echo $form->error($model,'ESTADO_ID'); ?>
	</div>

	<div style="    float: left;     width: 30%;    height: 90px;    margin: 5px;">
		<?php echo $form->labelEx($model,'UBICACION_ID'); ?>
		<?php echo $form->textField($model,'UBICACION_ID'); ?>
		<?php echo $form->error($model,'UBICACION_ID'); ?>
	</div>
                <div style="    float: left;     width: 30%;    height: 90px;    margin: 5px;">
        	<?php echo $form->labelEx($model,'EXP_E'); ?>
		<?php echo $form->textField($model,'EXP_E',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'EXP_E'); ?>
                </div>
                
                <div style="    float: left;     width: 30%;   height: 90px;    margin: 5px;">
        	<?php echo $form->labelEx($model,'EXP_L'); ?>
		<?php echo $form->textField($model,'EXP_L',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'EXP_L'); ?>
                </div>
    <div class="row buttons" style="  float: left;   top: 30px; width: 30%;   height: 90px;     margin: 0px 0 0 81%;">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Crear' : 'Guardar' , array('class'=>'btn btn-small','id'=>'carga_form')); ?>
	</div>
    <br>
	

	
	

	

<?php $this->endWidget(); ?>

</div><!-- form -->